using System;

namespace NRehersal
{
    public class TestData
    {
        private Action code = null;
        private string name=String.Empty;
        private Type expectedException=null;

        public TestData(Action testCode, string name)
        {
            this.code = testCode;
            this.name = name;
        }

        public TestData(string name):this(null,name)
        {
            
        }

        public Action Code
        {
            get { return code; }
            set { code = value; }
        }

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        public Type ExpectedException
        {
            get { return expectedException; }
            set { expectedException = value; }
        }

    }
}